package cn.com.stary1993.kite.captcha.support;

import cn.com.stary1993.kite.captcha.store.CacheStore;
import cn.com.stary1993.kite.captcha.vo.CaptchaResponse;
import cn.com.stary1993.kite.captcha.vo.CaptchaVO;

/**
 * @author stary1993
 */
public interface Captcha {

	/**
	 * 生成滑块验证码
	 * @return
	 */
	CaptchaResponse<? extends CaptchaVO> generate();

	/**
	 * 获取缓存存储器
	 * @return CacheStore
	 */
	CacheStore getCacheStore();

	/**
	 * 设置 缓存存储器
	 * @param cacheStore cacheStore
	 */
	void setCacheStore(CacheStore cacheStore);

}
